const mongoose = require('mongoose')

// 设置属性类型
let CategorieSchema = new mongoose.Schema({
  name: {
    type: String,
    required: true
  },
  count: {
    type: Number,
    default: 0
  }
})
let CategorieModel = mongoose.model('Categories', CategorieSchema)

module.exports = CategorieModel